<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        ul li {
            list-style: none;
            float: left;
            text-align: center;
            width: 200px;

        }

        a {
            text-decoration: none;
        }
    </style>
    <script>
        function init() {
            window.addEventListener("hashchange", () => {
                let url = location.hash.replace("#", "");
                switch (url) {
                    case "emp":
                        document.getElementById("insertPoint").innerHTML = "运功界面";
                        break;
                    case "mna": 
                    document.getElementById("insertPoint").innerHTML = "管理员界面";
                        break;
                }
            }, false)

        }

        window.addEventListener("load", init, false);
    </script>
</head>

<body>
    <ul>
        <li><a href="#emp">员工</a></li>
        <li><a href="#mna">管理员</a></li>
    </ul>
    <br>
    <hr>
    <div class="ineserPoint" id="insertPoint"></div>
</body>

</html>